<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 "http://www.w3.org/TR/html4/loose.dtd">
<html debug="true">
<head>
    <title>Edit In Place - Example</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <style type="text/css">
        .eip_savebutton { background-color: #36f; color: #fff; }
        .eip_cancelbutton { background-color: #000; color: #fff; }
        .eip_saving { background-image: url('ajax-loader.gif'); background-repeat: no-repeat; background-position: left; color: #903; padding: 0 0 0 20px; }
        .eip_empty { color: #afafaf; border: 1px solid #afafaf; padding: 3px;}
        .eip_editfield { background-color: #ff9; }
    </style>
    <script type="text/javascript" src="firebug/firebug.js"></script>
    <script type="text/javascript" src="prototype.js"></script>
    <script type="text/javascript" src="editinplace.js"></script>
</head>
<body>

<h1>Edit In Place - Example Page</h1>

<p>
<span id="change_color">Change Color</span>
</p>

<p>
<span id="editme">You& < > can `edit` plus+ joseph's line"s.</span></p>

<p>
<span id="editme_textarea">You& can edit plus+ joseph's line"s.</span>
</p>

<p>
What is your favorite color? <span id="mycolor">Green</span>
</p>

<p>
Empty text: <span id="empty_text"></span>
</p>

<script type="text/javascript">
	EditInPlace.defaults['save_url'] = 'save.php';

	$('editme').editInPlace({
		auto_adjust: true,
		select_text: true
	});

	$('editme_textarea').editInPlace({
		form_type: 'textarea'
	});

	$('mycolor').editInPlace({
		form_type: 'select',
		select_options: {
			'blue':		'Blue',
			'red':		'Red',
			'brown':	'Brown',
			'green':	'Green',
			'black':	'Black',
			<?php include('./more_options.php');?>
		},
		external_control: 'change_color'
	});

	$('empty_text').editInPlace();
</script>

</body>
</html>
